package org.ws.httphelper.model;

/**
 * 请求结果
 */
public class ResponseResult {
	private Object body=null;
	private int status=-1;
	private long wasteTime=0;
	
	public Object getBody() {
		return body;
	}
    public <T> T getBody(Class<T>clazz){
        return (T) body;
    }
	public void setBody(Object body) {
		this.body = body;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public boolean isSuccess() {
		return status==200;
	}
	public long getWasteTime() {
		return wasteTime;
	}
	public void setWasteTime(long wasteTime) {
		this.wasteTime = wasteTime;
	}
}
